tools/hotplug: Add a "dummy" hotplug script for testing
authorGeorge Dunlap <george.dunlap@eu.citrix.com>
Thu, 24 Mar 2016 17:18:32 +0000 (17:18 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Mon, 4 Apr 2016 16:47:39 +0000 (17:47 +0100)
commit5806acf503887e2ffe82aba4465c2e9183d19055
tree25b78391203a12f7fe3c25ab7fa03cf80499a386
parenta0f793d82d5ec2d0b67c57d7130bf01c91396c60
tools/hotplug: Add a "dummy" hotplug script for testing

Testing the hotplug external script path at the moment involves
actually setting up one of the alternate datapaths (blktap, iscsi,
&c).  Simplify testing by making a script which does a simple loopback,
but still has a target that can't be used directly.

To use:

script=block-dummy,vdev=xvda,target=dummy:<file>

Signed-off-by: George Dunlap <george.dunlap@eu.citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Tested-by: George Dunlap <george.dunlap@citrix.com>
tools/hotplug/Linux/Makefile
tools/hotplug/Linux/block-dummy [new file with mode: 0644]